public class Test3 {
    public static void main(String[] args) {
        int[][] arr = {{1,2,3,4},{2,3},{4,5,6}};
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.print(arr[i][j]+" ");
            }
            System.out.println();
        }
        System.out.println("============================");
        for (int[] x:arr) {
            for (int s:x) {
                System.out.print(s+" ");
            }
            System.out.println();
        }
    }
}